(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([ [ 208 ], {
    466: function(e, t, a) {},
    467: function(e, t, a) {},
    468: function(e, t, a) {},
    469: function(e, t, a) {},
    470: function(e, t, a) {},
    471: function(e, t, a) {},
    472: function(e, t, a) {},
    473: function(e, t, a) {},
    688: function(e, t, a) {
        "use strict";
        a.r(t);
        var n, s, c = a(18), i = a(10), r = a(6), o = a.n(r), l = a(12), h = a(14), u = a(15), m = a(5), j = a(23), b = a(24), p = a(4), g = a(2), d = a.n(g), x = a(22), w = a(19), O = a.n(w), f = a(9), N = a(3), k = a(1), v = a(8), y = a(27), T = a(37), S = a(30), V = a(39), I = a(56), M = a(49), C = a(58), P = a(31), L = a(32), U = a(64), H = a(63), F = a(16), B = (a(466), 
        a(29)), A = a.n(B), q = (a(467), a(0)), D = function(e) {
            var t = e.user;
            return {
                user: t
            };
        }, z = function() {
            return {};
        }, G = (n = Object(f["b"])(D, z), n(s = function(e) {
            Object(j["a"])(a, e);
            var t = Object(b["a"])(a);
            function a() {
                return Object(h["a"])(this, a), t.apply(this, arguments);
            }
            return Object(u["a"])(a, [ {
                key: "render",
                value: function() {
                    var e = this, t = this.props, a = t.weappImgUrl, n = t.showSwitchButton;
                    return Object(q["jsxs"])(k["View"], {
                        className: "mt-hotel",
                        children: [ Object(q["jsx"])(k["View"], {
                            className: "wm-banner",
                            children: Object(q["jsx"])(k["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "https://mpstatic.qingting123.com/img/waimai/banner-mt-jd.jpg"
                            })
                        }), Object(q["jsxs"])(k["View"], {
                            className: "wm-coupon",
                            children: [ Object(q["jsxs"])(k["View"], {
                                className: "header",
                                children: [ Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/3.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "先领券"
                                    }) ]
                                }), Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/9.png"
                                }), Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/4.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "再下单"
                                    }) ]
                                }), Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/9.png"
                                }), Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "http://cdn.meizhuan.cn/pic-go/save-meituan-hotel-210607.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "享优惠"
                                    }) ]
                                }) ]
                            }), Object(q["jsxs"])(k["View"], {
                                className: "content",
                                children: [ a ? Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    src: a,
                                    className: "qrcode",
                                    showMenuByLongpress: !0
                                }) : Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "qrcode round",
                                    src: "https://mpstatic.qingting123.com/img/daily-sign/logo-mt.png"
                                }), a && !n ? Object(q["jsx"])(k["Image"], {
                                    className: "tip",
                                    src: "https://mpstatic.qingting123.com/img/waimai/mt-tip.png"
                                }) : null, Object(q["jsx"])(k["View"], {
                                    className: "btn-wrapper",
                                    children: Object(q["jsx"])(k["Button"], {
                                        className: "btn",
                                        onClick: function() {
                                            return e.props.onHongbao();
                                        },
                                        children: "领红包订酒店"
                                    })
                                }) ]
                            }) ]
                        }), a ? Object(q["jsxs"])(k["View"], {
                            className: "wm-btns",
                            children: [ Object(q["jsx"])(k["View"], {
                                className: "btn left",
                                onClick: this.props.onShare,
                                children: "分享好友"
                            }), Object(q["jsx"])(k["View"], {
                                className: "btn right",
                                onClick: this.props.onCopy,
                                children: "复制文案"
                            }) ]
                        }) : null, Object(q["jsxs"])(k["View"], {
                            className: "wm-tips",
                            children: [ Object(q["jsx"])(k["View"], {
                                className: "h3",
                                children: "注意事项："
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "1.无论美团新老用户，每个手机号每天均可领一次，红包金额随机发放；"
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "2.美团绑定的手机号，需与领券登录的手机号一致；"
                                })
                            }) ]
                        }) ]
                    });
                }
            } ]), a;
        }(N["Component"])) || s);
        G.defaultProps = {
            weappImgUrl: "",
            onCopy: function() {},
            onShare: function() {},
            onHongbao: function() {},
            showSwitchButton: !1
        }, G.propType = {
            onCopy: A.a.func,
            onShare: A.a.func,
            onHongbao: A.a.func,
            weappImgUrl: A.a.string,
            showSwitchButton: A.a.bool
        };
        var Y, _, K = G, X = a(36), W = a(28), Q = a(35), E = a(33), R = (a(468), function() {
            var e = Object(l["a"])(o.a.mark(function e() {
                var t, a, n, s, c;
                return o.a.wrap(function(e) {
                    while (1) switch (e.prev = e.next) {
                      case 0:
                        return e.next = 2, d.a.getSetting();

                      case 2:
                        if (t = e.sent, a = t.authSetting, !a[Q["b"]]) {
                            e.next = 6;
                            break;
                        }
                        return e.abrupt("return");

                      case 6:
                        return e.prev = 6, e.next = 9, d.a.authorize({
                            scope: Q["b"]
                        });

                      case 9:
                        e.next = 21;
                        break;

                      case 11:
                        return e.prev = 11, e.t0 = e["catch"](6), n = "是否授权当前位置", s = "需要获取您的地理位置，请确认授权，否则地图功能将无法使用", 
                        e.next = 17, d.a.showModal({
                            title: n,
                            content: s
                        });

                      case 17:
                        if (c = e.sent, !c.confirm) {
                            e.next = 21;
                            break;
                        }
                        return e.next = 21, d.a.openSetting();

                      case 21:
                      case "end":
                        return e.stop();
                    }
                }, e, null, [ [ 6, 11 ] ]);
            }));
            return function() {
                return e.apply(this, arguments);
            };
        }()), J = function() {
            var e = Object(l["a"])(o.a.mark(function e() {
                var t, a, n, s, c;
                return o.a.wrap(function(e) {
                    while (1) switch (e.prev = e.next) {
                      case 0:
                        return e.next = 2, R();

                      case 2:
                        return e.next = 4, d.a.getSetting();

                      case 4:
                        if (t = e.sent, a = t.authSetting, a[Q["b"]]) {
                            e.next = 8;
                            break;
                        }
                        return e.abrupt("return", "");

                      case 8:
                        return n = {
                            type: "gcj02",
                            isHighAccuracy: !1
                        }, d.a.showLoading({
                            title: "正在定位",
                            mask: !0
                        }), e.prev = 10, e.next = 13, d.a.getLocation(n);

                      case 13:
                        s = e.sent, d.a.hideLoading(), X["a"].dispatch(Object(E["d"])(s.latitude)), X["a"].dispatch(Object(E["e"])(s.longitude)), 
                        c = Object(L["b"])(), X["a"].dispatch(Object(E["i"])(c)), e.next = 26;
                        break;

                      case 21:
                        e.prev = 21, e.t0 = e["catch"](10), console.log(e.t0), d.a.hideLoading(), d.a.showToast({
                            title: "定位失败",
                            icon: "none"
                        });

                      case 26:
                      case "end":
                        return e.stop();
                    }
                }, e, null, [ [ 10, 21 ] ]);
            }));
            return function() {
                return e.apply(this, arguments);
            };
        }(), Z = 1, $ = function(e) {
            var t = Object(f["d"])(function(e) {
                return e.user;
            }), a = t.loginStatus, n = Object(f["d"])(function(e) {
                return e.movie;
            }), s = n.longitude, c = n.latitude, r = Object(N["useState"])([]), h = Object(i["a"])(r, 2), u = h[0], m = h[1], j = Object(N["useState"])("blank"), b = Object(i["a"])(j, 2), p = b[0], x = b[1], w = function(e) {
                var t = {
                    appId: F["e"].MTYX,
                    path: e
                };
                d.a.navigateToMiniProgram(t);
            }, O = function(t, a) {
                t.preventDefault(), t.stopPropagation(), e.onShare(a);
            };
            return Object(N["useEffect"])(function() {
                e.show && a && (s && c || J());
            }, [ c, a, s, e.show ]), Object(N["useEffect"])(function() {
                if (e.show && a && !u.length && s && c) {
                    Z = 1;
                    var t = function() {
                        var e = Object(l["a"])(o.a.mark(function e() {
                            var t, a, n;
                            return o.a.wrap(function(e) {
                                while (1) switch (e.prev = e.next) {
                                  case 0:
                                    return x("loading"), t = {
                                        pageNum: Z,
                                        latitude: c,
                                        longitude: s,
                                        pageSize: 30
                                    }, e.next = 4, v["G"].getMTYXList(t).then(function(e) {
                                        return e.data;
                                    });

                                  case 4:
                                    if (a = e.sent, 0 == a.code) {
                                        e.next = 8;
                                        break;
                                    }
                                    return d.a.showToast({
                                        title: a.msg,
                                        icon: "none"
                                    }), e.abrupt("return");

                                  case 8:
                                    if (n = a.data.skuList || [], n.length) {
                                        e.next = 12;
                                        break;
                                    }
                                    return x("blank"), e.abrupt("return");

                                  case 12:
                                    x("pull"), m(n);

                                  case 14:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }));
                        return function() {
                            return e.apply(this, arguments);
                        };
                    }();
                    t();
                }
            }, [ s, c, e.show, u.length, a ]), Object(g["useReachBottom"])(Object(l["a"])(o.a.mark(function t() {
                var a, n, i;
                return o.a.wrap(function(t) {
                    while (1) switch (t.prev = t.next) {
                      case 0:
                        if (e.show) {
                            t.next = 2;
                            break;
                        }
                        return t.abrupt("return");

                      case 2:
                        if (!p || "pull" === p) {
                            t.next = 4;
                            break;
                        }
                        return t.abrupt("return");

                      case 4:
                        return Z++, x("loading"), a = {
                            pageNum: Z,
                            latitude: c,
                            longitude: s,
                            pageSize: 30
                        }, t.next = 9, v["G"].getMTYXList(a).then(function(e) {
                            return e.data;
                        });

                      case 9:
                        if (n = t.sent, 0 == n.code) {
                            t.next = 13;
                            break;
                        }
                        return d.a.showToast({
                            title: n.msg,
                            icon: "none"
                        }), t.abrupt("return");

                      case 13:
                        if (i = n.data.skuList || [], i.length) {
                            t.next = 17;
                            break;
                        }
                        return x("end"), t.abrupt("return");

                      case 17:
                        x("pull"), m(u.concat(i));

                      case 19:
                      case "end":
                        return t.stop();
                    }
                }, t);
            }))), e.show ? Object(q["jsxs"])(k["View"], {
                className: "mt-select",
                children: [ Object(q["jsx"])(k["View"], {
                    className: "wm-banner",
                    children: Object(q["jsx"])(k["Image"], {
                        mode: "widthFix",
                        className: "img",
                        src: "http://cdn.meizhuan.cn/pic-go/mt-select-banner-210514.jpg"
                    })
                }), Object(q["jsxs"])(k["View"], {
                    className: "wm-coupon",
                    children: [ Object(q["jsxs"])(k["View"], {
                        className: "header",
                        children: [ Object(q["jsxs"])(k["View"], {
                            className: "step",
                            children: [ Object(q["jsx"])(k["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "https://mpstatic.qingting123.com/img/waimai/3.png"
                            }), Object(q["jsx"])(k["Text"], {
                                className: "span",
                                children: "先领券"
                            }) ]
                        }), Object(q["jsx"])(k["Image"], {
                            mode: "widthFix",
                            className: "link",
                            src: "https://mpstatic.qingting123.com/img/waimai/9.png"
                        }), Object(q["jsxs"])(k["View"], {
                            className: "step",
                            children: [ Object(q["jsx"])(k["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "https://mpstatic.qingting123.com/img/waimai/4.png"
                            }), Object(q["jsx"])(k["Text"], {
                                className: "span",
                                children: "再下单"
                            }) ]
                        }), Object(q["jsx"])(k["Image"], {
                            mode: "widthFix",
                            className: "link",
                            src: "https://mpstatic.qingting123.com/img/waimai/9.png"
                        }), Object(q["jsxs"])(k["View"], {
                            className: "step",
                            children: [ Object(q["jsx"])(k["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "http://cdn.meizhuan.cn/pic-go/save-meituan-hotel-210607.png"
                            }), Object(q["jsx"])(k["Text"], {
                                className: "span",
                                children: "享优惠"
                            }) ]
                        }) ]
                    }), Object(q["jsx"])(k["View"], {
                        className: "content",
                        children: Object(q["jsxs"])(k["View"], {
                            className: "btn-wrapper",
                            children: [ Object(q["jsxs"])(k["Button"], {
                                className: "btn youxuan",
                                onClick: function() {
                                    return e.onHongbao();
                                },
                                children: [ Object(q["jsx"])(k["Text"], {
                                    className: "label",
                                    children: "领优选红包"
                                }), Object(q["jsx"])(k["View"], {
                                    className: "tag",
                                    children: "1分钱买菜"
                                }) ]
                            }), Object(q["jsx"])(k["Button"], {
                                className: "btn select mt20",
                                onClick: function() {
                                    return e.onHongbao(4);
                                },
                                children: Object(q["jsx"])(k["Text"], {
                                    className: "label",
                                    children: "美团优选（1.99专区）"
                                })
                            }), Object(q["jsx"])(k["Button"], {
                                className: "btn select mt20",
                                onClick: function() {
                                    return e.onHongbao(5);
                                },
                                children: Object(q["jsx"])(k["Text"], {
                                    className: "label",
                                    children: "美团优选（限时秒杀）"
                                })
                            }) ]
                        })
                    }) ]
                }), Object(q["jsx"])(k["View"], {
                    className: "goods",
                    children: Object(q["jsxs"])(k["View"], {
                        className: "content",
                        children: [ Object(q["jsxs"])(k["View"], {
                            className: "header",
                            children: [ Object(q["jsx"])(k["Text"], {
                                className: "dark",
                                children: "美团优选 | "
                            }), Object(q["jsx"])(k["Text"], {
                                className: "gray",
                                children: "今日秒杀"
                            }) ]
                        }), Object(q["jsxs"])(k["View"], {
                            className: "list",
                            children: [ u.map(function(e) {
                                return Object(q["jsxs"])(k["View"], {
                                    className: "item",
                                    onClick: function() {
                                        return w(e.itemWXLinkUrl);
                                    },
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        lazyLoad: !0,
                                        className: "img",
                                        src: e.pictUrl
                                    }), Object(q["jsxs"])(k["View"], {
                                        className: "right",
                                        children: [ Object(q["jsx"])(k["View"], {
                                            className: "title",
                                            children: e.title
                                        }), Object(q["jsxs"])(k["View"], {
                                            className: "info",
                                            children: [ Object(q["jsx"])(k["View"], {
                                                className: "price",
                                                children: Object(q["jsxs"])(k["Text"], {
                                                    className: "floor",
                                                    children: [ "￥", e.promotionPrice ]
                                                })
                                            }), Object(q["jsxs"])(k["View"], {
                                                className: "btns",
                                                children: [ Object(q["jsxs"])(k["Button"], {
                                                    className: "share",
                                                    onClick: function(t) {
                                                        return O(t, e);
                                                    },
                                                    children: [ Object(q["jsx"])(k["Text"], {
                                                        className: "icon-font iconfont-circle-share"
                                                    }), Object(q["jsx"])(k["Text"], {
                                                        className: "label",
                                                        children: "分享"
                                                    }) ]
                                                }), Object(q["jsx"])(k["View"], {
                                                    className: "btn",
                                                    children: "立即抢购"
                                                }) ]
                                            }) ]
                                        }) ]
                                    }) ]
                                }, e.itemId);
                            }), Object(q["jsx"])(W["a"], {
                                type: p
                            }) ]
                        }) ]
                    })
                }) ]
            }) : null;
        }, ee = Object(N["memo"])($), te = a(13), ae = a(25), ne = (a(469), function(e) {
            var t = Object(f["d"])(function(e) {
                return e.weapp.mp;
            }), a = t.showMtYx, n = Object(f["d"])(function(e) {
                return e.user;
            }), s = n.loginStatus, c = Object(N["useState"])([]), r = Object(i["a"])(c, 2), h = r[0], u = r[1];
            return Object(N["useEffect"])(function() {
                if (a && s) {
                    var e = function() {
                        var e = Object(l["a"])(o.a.mark(function e() {
                            var t, a, n;
                            return o.a.wrap(function(e) {
                                while (1) switch (e.prev = e.next) {
                                  case 0:
                                    return t = {
                                        pageNum: 1,
                                        pageSize: 4
                                    }, e.next = 3, v["G"].getMTYXList(t).then(function(e) {
                                        return e.data;
                                    });

                                  case 3:
                                    if (a = e.sent, 0 == a.code) {
                                        e.next = 7;
                                        break;
                                    }
                                    return Object(g["showToast"])({
                                        title: a.msg,
                                        icon: "none"
                                    }), e.abrupt("return", !1);

                                  case 7:
                                    n = a.data.skuList || [], u(n);

                                  case 9:
                                  case "end":
                                    return e.stop();
                                }
                            }, e);
                        }));
                        return function() {
                            return e.apply(this, arguments);
                        };
                    }();
                    e();
                }
            }, [ s, a ]), a && s && h.length ? Object(q["jsxs"])(k["View"], {
                className: "selected-goods",
                children: [ Object(q["jsxs"])(k["View"], {
                    className: "header",
                    children: [ Object(q["jsx"])(k["View"], {
                        className: "title",
                        children: Object(q["jsx"])(k["Text"], {
                            children: "优选秒杀"
                        })
                    }), Object(q["jsxs"])(k["View"], {
                        className: "extra",
                        onClick: e.onShowAll,
                        children: [ Object(q["jsx"])(k["Text"], {
                            children: "全部"
                        }), Object(q["jsx"])(te["l"], {
                            className: "icon",
                            value: "chevron-right",
                            color: "#B5B5B5",
                            size: "18"
                        }) ]
                    }) ]
                }), Object(q["jsx"])(k["View"], {
                    className: "content",
                    children: h.map(function(t) {
                        return Object(q["jsxs"])(k["View"], {
                            className: "item",
                            onClick: e.onShowAll,
                            children: [ Object(q["jsx"])(k["Image"], {
                                className: "img",
                                src: t.pictUrl,
                                children: Object(q["jsx"])(k["View"], {
                                    className: "discount",
                                    children: Object(q["jsxs"])(k["Text"], {
                                        children: [ Object(ae["mul"])(Object(ae["div"])(t.promotionPrice, t.originPrice), 10, {
                                            fixed: 1
                                        }), "折" ]
                                    })
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "title",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: t.title
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "price",
                                children: Object(q["jsxs"])(k["Text"], {
                                    children: [ "￥", t.promotionPrice ]
                                })
                            }) ]
                        }, t.itemId);
                    })
                }) ]
            }) : null;
        }), se = Object(N["memo"])(ne), ce = a(62), ie = a.n(ce), re = (a(470), function(e) {
            var t = {
                needMini: 0,
                type: e,
                linkType: 4
            };
            Object(g["showLoading"])({
                title: "加载中",
                mask: !0
            }), v["G"].getMTLink2(t).then(function(e) {
                return e.data;
            }).then(function(t) {
                if (Object(g["hideLoading"])(), 1 == t.code) {
                    if (1 === e) {
                        var a = {
                            appId: F["e"].MT,
                            path: t.url
                        };
                        Object(g["navigateToMiniProgram"])(a).catch(ie.a);
                    } else if (3 === e) {
                        var n = {
                            appId: F["e"].MTYX,
                            path: t.url
                        };
                        Object(g["navigateToMiniProgram"])(n).catch(ie.a);
                    }
                } else {
                    var s = "AgentAction.getMTLink2：".concat(t.msg);
                    Object(g["showToast"])({
                        title: s,
                        icon: "none"
                    });
                }
            });
        }), oe = function(e) {
            v["O"].getMiniServiceDomain().then(function(e) {
                return e.data;
            }).then(function(t) {
                if (t.serviceDomain) {
                    Object(g["hideLoading"])();
                    var a = "https://".concat(t.serviceDomain, "/am/mt-copy-landing.jsp?").concat(x["qs"].stringify({
                        mtKl: e
                    })), n = {
                        src: a,
                        frontColor: "#000000",
                        backgroundColor: "#ffffff"
                    }, s = "/pages/webview/index?".concat(x["qs"].stringify(n));
                    Object(g["navigateTo"])({
                        url: s
                    });
                } else {
                    var c = "MpAction.getMiniServiceDomain: ".concat(t.msg);
                    Object(g["showToast"])({
                        title: c,
                        icon: "none"
                    });
                }
            });
        }, le = function() {
            var e = {
                needMini: 0,
                type: 0,
                linkType: 5
            };
            Object(g["showLoading"])({
                title: "加载中",
                mask: !0
            }), v["G"].getMTLink2(e).then(function(e) {
                return e.data;
            }).then(function(e) {
                if (1 == e.code) oe(e.url); else {
                    var t = "AgentAction.getMTLink2：".concat(e.msg);
                    Object(g["showToast"])({
                        title: t,
                        icon: "none"
                    });
                }
            });
        }, he = function() {
            var e = Object(f["d"])(function(e) {
                return e.weapp.mp;
            }), t = e.showMtYx, a = e.showMtKl;
            return Object(q["jsxs"])(k["View"], {
                className: "get-coupons",
                children: [ a ? Object(q["jsxs"])(k["View"], {
                    className: "item exclusive",
                    onClick: le,
                    children: [ Object(q["jsx"])(k["View"], {
                        className: "header",
                        children: "APP专享"
                    }), Object(q["jsxs"])(k["View"], {
                        className: "title",
                        children: [ Object(q["jsx"])(k["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/icon-20211209.png"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "label",
                            children: "外卖红包"
                        }) ]
                    }), Object(q["jsxs"])(k["View"], {
                        className: "brief",
                        children: [ Object(q["jsx"])(k["Text"], {
                            className: "gray",
                            children: "新人"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "number",
                            children: "10"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(q["jsx"])(k["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }) : null, Object(q["jsxs"])(k["View"], {
                    className: "item market",
                    onClick: function() {
                        return re(1);
                    },
                    children: [ Object(q["jsx"])(k["View"], {
                        className: "header",
                        children: "1小时送达"
                    }), Object(q["jsxs"])(k["View"], {
                        className: "title",
                        children: [ Object(q["jsx"])(k["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/mt-market-20211111.png"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "label",
                            children: "美团商超"
                        }) ]
                    }), Object(q["jsxs"])(k["View"], {
                        className: "brief",
                        children: [ Object(q["jsx"])(k["Text"], {
                            className: "gray",
                            children: "最高"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "number",
                            children: "34"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(q["jsx"])(k["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }), t ? Object(q["jsxs"])(k["View"], {
                    className: "item select",
                    onClick: function() {
                        return re(3);
                    },
                    children: [ Object(q["jsx"])(k["View"], {
                        className: "header",
                        children: "1分钱买菜"
                    }), Object(q["jsxs"])(k["View"], {
                        className: "title",
                        children: [ Object(q["jsx"])(k["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/mt-select-20211111.png"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "label",
                            children: "美团优选"
                        }) ]
                    }), Object(q["jsxs"])(k["View"], {
                        className: "brief",
                        children: [ Object(q["jsx"])(k["Text"], {
                            className: "gray",
                            children: "新人"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "number",
                            children: "0.01"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(q["jsx"])(k["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }) : null, Object(q["jsxs"])(k["Navigator"], {
                    className: "item arrive",
                    url: "/pages/main/arrive/index",
                    children: [ Object(q["jsx"])(k["View"], {
                        className: "header",
                        children: "美团点评"
                    }), Object(q["jsxs"])(k["View"], {
                        className: "title",
                        children: [ Object(q["jsx"])(k["Image"], {
                            className: "logo",
                            src: "http://cdn.meizhuan.cn/pic-go/mt-arrive-20211111.png"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "label",
                            children: "吃喝玩乐"
                        }) ]
                    }), Object(q["jsxs"])(k["View"], {
                        className: "brief",
                        children: [ Object(q["jsx"])(k["Text"], {
                            className: "gray",
                            children: "最高"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "number",
                            children: "16"
                        }), Object(q["jsx"])(k["Text"], {
                            className: "unit",
                            children: "元"
                        }) ]
                    }), Object(q["jsx"])(k["View"], {
                        className: "btn",
                        children: "前往领取"
                    }) ]
                }) ]
            });
        }, ue = (a(471), [ {
            type: 31,
            title: "十城活动（红包更大）",
            imgUrl: "http://cdn.meizhuan.cn/pic-go/shicheng-210731.png",
            slogen: "10元大红包等你花",
            joinList: [ "福州、厦门、武汉、青岛、南昌、长沙", "合肥、成都、重庆、济南" ]
        }, {
            type: 30,
            title: "宁波城市活动",
            imgUrl: "http://cdn.meizhuan.cn/pic-go/ningbo-210731.png",
            slogen: "限时领25元红包",
            joinList: [ "宁波" ]
        } ]), me = function(e) {
            var t = {
                needMini: 0,
                type: e,
                linkType: 4
            };
            Object(g["showLoading"])({
                title: "加载中",
                mask: !0
            }), v["G"].getMTLink2(t).then(function(e) {
                return e.data;
            }).then(function(e) {
                if (Object(g["hideLoading"])(), 1 == e.code) Object(g["navigateToMiniProgram"])({
                    appId: F["e"].MT,
                    path: e.url
                }); else {
                    var t = "AgentAction.getMTLink2：".concat(e.msg);
                    Object(g["showToast"])({
                        title: t,
                        icon: "none"
                    });
                }
            });
        }, je = function(e) {
            var t = e.activity;
            return Object(q["jsxs"])(k["View"], {
                className: "activity-card",
                onClick: function() {
                    return me(t.type);
                },
                children: [ Object(q["jsxs"])(k["View"], {
                    className: "info",
                    children: [ Object(q["jsx"])(k["Image"], {
                        className: "img",
                        src: t.imgUrl
                    }), Object(q["jsxs"])(k["View"], {
                        className: "middel",
                        children: [ Object(q["jsx"])(k["View"], {
                            className: "title",
                            children: t.title
                        }), Object(q["jsxs"])(k["View"], {
                            className: "slogen",
                            children: [ Object(q["jsx"])(k["Image"], {
                                className: "icon",
                                src: "http://cdn.meizhuan.cn/pic-go/hongbao-210731.png"
                            }), Object(q["jsx"])(k["View"], {
                                className: "center",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: t.slogen
                                })
                            }) ]
                        }) ]
                    }), Object(q["jsx"])(k["View"], {
                        className: "go",
                        children: Object(q["jsx"])(k["Text"], {
                            children: "前往领取"
                        })
                    }) ]
                }), Object(q["jsxs"])(k["View"], {
                    className: "join",
                    children: [ Object(q["jsx"])(k["View"], {
                        className: "arrow"
                    }), Object(q["jsx"])(k["View"], {
                        className: "cities",
                        children: Object(q["jsxs"])(k["View"], {
                            className: "wrapper",
                            children: [ Object(q["jsx"])(k["View"], {
                                className: "label",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "参与城市："
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "value",
                                children: t.joinList.map(function(e) {
                                    return Object(q["jsx"])(k["View"], {
                                        children: e
                                    }, e);
                                })
                            }) ]
                        })
                    }) ]
                }) ]
            });
        }, be = function() {
            var e = Object(N["useState"])(!1), t = Object(i["a"])(e, 2), a = t[0], n = t[1], s = Object(N["useState"])(!1), c = Object(i["a"])(s, 2), r = c[0], o = c[1], l = Object(f["d"])(function(e) {
                return e.user;
            }), h = l.loginStatus;
            return Object(N["useEffect"])(function() {
                v["G"].showCityActivity().then(function(e) {
                    return e.data;
                }).then(function(e) {
                    n(e.showNingboActivity || !1), o(e.show10CitiesActivity || !1);
                });
            }, []), h && (a || r) ? Object(q["jsxs"])(k["View"], {
                className: "city-activity",
                children: [ Object(q["jsx"])(k["View"], {
                    className: "city-activity-title",
                    children: Object(q["jsx"])(k["Text"], {
                        children: "城市活动"
                    })
                }), r && Object(q["jsx"])(je, {
                    activity: ue[0]
                }), a && Object(q["jsx"])(je, {
                    activity: ue[1]
                }) ]
            }) : null;
        }, pe = (a(472), function(e) {
            var t = e.user;
            return {
                user: t
            };
        }), ge = function() {
            return {};
        }, de = (Y = Object(f["b"])(pe, ge), Y(_ = function(e) {
            Object(j["a"])(a, e);
            var t = Object(b["a"])(a);
            function a() {
                return Object(h["a"])(this, a), t.apply(this, arguments);
            }
            return Object(u["a"])(a, [ {
                key: "render",
                value: function() {
                    var e = this, t = this.props.user.currentWeappMp.mtfxApplied, a = this.props, n = a.weappImgUrl, s = a.show;
                    return Object(q["jsxs"])(k["View"], {
                        className: O()("mt-waimai", {
                            visible: s
                        }),
                        children: [ Object(q["jsx"])(k["View"], {
                            className: "wm-banner",
                            children: Object(q["jsx"])(k["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "http://cdn.meizhuan.cn/pic-go/mt-fanli-0-210827.png"
                            })
                        }), Object(q["jsxs"])(k["View"], {
                            className: "wm-coupon",
                            children: [ Object(q["jsxs"])(k["View"], {
                                className: "header",
                                children: [ Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "http://cdn.meizhuan.cn/pic-go/lhb-meituan-210602.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "领红包"
                                    }) ]
                                }), Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/9.png"
                                }), Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "http://cdn.meizhuan.cn/pic-go/zxd-meituan-210602.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "再下单"
                                    }) ]
                                }), Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/9.png"
                                }), Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "http://cdn.meizhuan.cn/pic-go/save-meituan-210607.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "享优惠"
                                    }) ]
                                }) ]
                            }), Object(q["jsxs"])(k["View"], {
                                className: "content",
                                children: [ n ? Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "qrcode",
                                    src: n,
                                    showMenuByLongpress: !0
                                }) : Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "qrcode round",
                                    src: "https://mpstatic.qingting123.com/img/daily-sign/logo-mt.png"
                                }), Object(q["jsx"])(k["View"], {
                                    className: "btn-wrapper",
                                    children: t ? Object(q["jsx"])(k["Button"], {
                                        className: "btn",
                                        onClick: function() {
                                            return e.props.onFxHongbao();
                                        },
                                        children: "领红包点外卖"
                                    }) : Object(q["jsx"])(k["Button"], {
                                        className: "btn",
                                        onClick: function() {
                                            return e.props.onHongbao();
                                        },
                                        children: "领红包点外卖"
                                    })
                                }), Object(q["jsxs"])(k["View"], {
                                    className: "share",
                                    children: [ Object(q["jsxs"])(k["View"], {
                                        hoverClass: "hover-class",
                                        className: "share__wrapper",
                                        onClick: this.props.onShare,
                                        children: [ Object(q["jsx"])(k["Icon"], {
                                            className: "icon-font iconfont-circle-share"
                                        }), Object(q["jsx"])(k["Text"], {
                                            className: "share__wrapper-label",
                                            children: "分享好友"
                                        }) ]
                                    }), Object(q["jsxs"])(k["Navigator"], {
                                        className: "share__wrapper",
                                        appId: F["e"].MT,
                                        openType: "navigate",
                                        target: "miniProgram",
                                        path: "index/pages/order/order-list?isComment=8&currentmain=0",
                                        children: [ Object(q["jsx"])(k["Icon"], {
                                            className: "icon-font iconfont-weapp-order"
                                        }), Object(q["jsx"])(k["Text"], {
                                            className: "share__wrapper-label",
                                            children: "查看订单"
                                        }) ]
                                    }) ]
                                }) ]
                            }) ]
                        }), Object(q["jsx"])(he, {}), Object(q["jsx"])(be, {}), Object(q["jsx"])(se, {
                            onShowAll: function() {
                                return e.props.onChangeNav("select");
                            }
                        }), Object(q["jsxs"])(k["View"], {
                            className: "wm-tips",
                            children: [ Object(q["jsx"])(k["View"], {
                                className: "h3",
                                children: "注意事项："
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "1.无论美团新老用户，每个手机号每天领取使用后可以再次领取，红包金额随机发放；"
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "2.美团绑定的手机号，需与领券登录的手机号一致；"
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "3.下单后第二天上午10:00会有订单提醒；"
                                })
                            }) ]
                        }) ]
                    });
                }
            } ]), a;
        }(N["Component"])) || _);
        de.defaultProps = {
            show: !1,
            weappImgUrl: "",
            onShare: function() {},
            onHongbao: function() {},
            onChangeNav: function() {},
            onFxHongbao: function() {}
        }, de.propType = {
            show: A.a.bool,
            onShare: A.a.func,
            onHongbao: A.a.func,
            onChangeNav: A.a.func,
            onFxHongbao: A.a.func,
            weappImgUrl: A.a.string
        };
        var xe, we, Oe = de, fe = (a(473), function(e) {
            var t = e.user;
            return {
                user: t
            };
        }), Ne = function() {
            return {};
        }, ke = (xe = Object(f["b"])(fe, Ne), xe(we = function(e) {
            Object(j["a"])(a, e);
            var t = Object(b["a"])(a);
            function a() {
                return Object(h["a"])(this, a), t.apply(this, arguments);
            }
            return Object(u["a"])(a, [ {
                key: "render",
                value: function() {
                    var e = this, t = this.props, a = t.weappImgUrl, n = t.showSwitchButton;
                    return Object(q["jsxs"])(k["View"], {
                        className: "mt-market",
                        children: [ Object(q["jsx"])(k["View"], {
                            className: "wm-banner",
                            children: Object(q["jsx"])(k["Image"], {
                                mode: "widthFix",
                                className: "img",
                                src: "https://mpstatic.qingting123.com/img/waimai/banner-mt-sc.jpg"
                            })
                        }), Object(q["jsxs"])(k["View"], {
                            className: "wm-coupon",
                            children: [ Object(q["jsxs"])(k["View"], {
                                className: "header",
                                children: [ Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/mt-sc-3.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "先领券"
                                    }) ]
                                }), Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/mt-sc-4.png"
                                }), Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "https://mpstatic.qingting123.com/img/waimai/mt-sc-2.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "再下单"
                                    }) ]
                                }), Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "link",
                                    src: "https://mpstatic.qingting123.com/img/waimai/mt-sc-4.png"
                                }), Object(q["jsxs"])(k["View"], {
                                    className: "step",
                                    children: [ Object(q["jsx"])(k["Image"], {
                                        mode: "widthFix",
                                        className: "img",
                                        src: "http://cdn.meizhuan.cn/pic-go/save-meituan-market-210607.png"
                                    }), Object(q["jsx"])(k["Text"], {
                                        className: "span",
                                        children: "享优惠"
                                    }) ]
                                }) ]
                            }), Object(q["jsxs"])(k["View"], {
                                className: "content",
                                children: [ a ? Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "qrcode",
                                    src: a,
                                    showMenuByLongpress: !0
                                }) : Object(q["jsx"])(k["Image"], {
                                    mode: "widthFix",
                                    className: "qrcode round",
                                    src: "https://mpstatic.qingting123.com/img/daily-sign/logo-mt.png"
                                }), a.waimai && !n && Object(q["jsx"])(k["Image"], {
                                    className: "tip",
                                    src: "https://mpstatic.qingting123.com/img/waimai/mt-sc-5.png"
                                }), n && Object(q["jsx"])(k["View"], {
                                    className: "btn-wrapper",
                                    children: Object(q["jsxs"])(k["Button"], {
                                        className: "btn",
                                        onClick: function() {
                                            return e.props.onHongbao();
                                        },
                                        children: [ Object(q["jsx"])(k["Text"], {
                                            className: "label",
                                            children: "领红包买果蔬"
                                        }), Object(q["jsx"])(k["View"], {
                                            className: "tag",
                                            children: "1小时送达"
                                        }) ]
                                    })
                                }) ]
                            }) ]
                        }), a && Object(q["jsxs"])(k["View"], {
                            className: "wm-btns",
                            children: [ Object(q["jsx"])(k["View"], {
                                className: "btn left",
                                onClick: this.props.onShare,
                                children: "分享好友"
                            }), Object(q["jsx"])(k["View"], {
                                className: "btn right",
                                onClick: this.props.onCopy,
                                children: "复制文案"
                            }) ]
                        }), Object(q["jsxs"])(k["View"], {
                            className: "wm-tips",
                            children: [ Object(q["jsx"])(k["View"], {
                                className: "h3",
                                children: "注意事项："
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "1.无论美团新老用户，每个手机号每天均可领一次，红包金额随机发放；"
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "2.美团绑定的手机号，需与领券登录的手机号一致；"
                                })
                            }), Object(q["jsx"])(k["View"], {
                                className: "p",
                                children: Object(q["jsx"])(k["Text"], {
                                    children: "3.下单后第二天上午10:00会有订单提醒；"
                                })
                            }) ]
                        }) ]
                    });
                }
            } ]), a;
        }(N["Component"])) || we);
        ke.defaultProps = {
            weappImgUrl: "",
            onCopy: function() {},
            onShare: function() {},
            onHongbao: function() {},
            showSwitchButton: !1
        }, ke.propType = {
            onCopy: A.a.func,
            onShare: A.a.func,
            onHongbao: A.a.func,
            weappImgUrl: A.a.string,
            showSwitchButton: A.a.bool
        };
        var ve, ye, Te = ke, Se = function(e) {
            var t = e.user, a = e.switchTab, n = e.movie;
            return {
                user: t,
                switchTab: a,
                movie: n
            };
        }, Ve = function(e) {
            return {
                onUpdateAgent: function(t) {
                    e(Object(P["a"])(t));
                },
                onDeleteSwitchTabRouter: function(t) {
                    e(Object(U["a"])(t));
                }
            };
        }, Ie = (ve = Object(f["b"])(Se, Ve), ve(ye = function(e) {
            Object(j["a"])(a, e);
            var t = Object(b["a"])(a);
            function a(e) {
                var n;
                return Object(h["a"])(this, a), n = t.call(this, e), Object(p["a"])(Object(m["a"])(n), "getCustomParams", function() {
                    var e = n.props.switchTab.routers;
                    if (!e.length) return {};
                    var t = d.a.getCurrentInstance().router.path, a = e.find(function(e) {
                        return e.path === t;
                    });
                    return a ? (n.props.onDeleteSwitchTabRouter(t), a.params) : {};
                }), Object(p["a"])(Object(m["a"])(n), "resolveParams", function() {
                    var e = n.getCustomParams(), t = d.a.getCurrentInstance().router.params;
                    n.referer = e.referer || t.referer || "";
                    var a = e.tabKey || t.tabKey || "", s = n.state.tabNavs.map(function(e) {
                        return e.key;
                    }), c = s.includes(a);
                    if (c) return n.toggleTabNav(a), !1;
                    n.getQrCodeUrl();
                }), Object(p["a"])(Object(m["a"])(n), "toggleTabNav", function(e) {
                    if ("hotel" !== e) {
                        var t = n.customShare[e].flag;
                        !t && n.getMpShare(e);
                    }
                    var a = n.state.tabNavs.map(function(t) {
                        return t.active = t.key === e, t;
                    });
                    n.setState({
                        tabNavs: a,
                        showShareDialog: !1
                    }, n.getQrCodeUrl);
                }), Object(p["a"])(Object(m["a"])(n), "getActiveNav", function() {
                    var e = n.state.tabNavs, t = e.find(function(e) {
                        return e.active;
                    });
                    return t;
                }), Object(p["a"])(Object(m["a"])(n), "openLogin", function() {
                    n.setState({
                        showLogin: !0
                    });
                }), Object(p["a"])(Object(m["a"])(n), "closeLogin", function() {
                    n.setState({
                        showLogin: !1
                    });
                }), Object(p["a"])(Object(m["a"])(n), "getQrCodeUrl", Object(l["a"])(o.a.mark(function e() {
                    var t, a, s, c, i, r;
                    return o.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            if (t = n.getActiveNav(), n.props.user.loginStatus) {
                                e.next = 6;
                                break;
                            }
                            if ("waimai" !== t.key) {
                                e.next = 4;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 4:
                            return n.openLogin(), e.abrupt("return", !1);

                          case 6:
                            if (a = n.state.weappImgUrl, "waimai" !== t.key) {
                                e.next = 10;
                                break;
                            }
                            if (!a.waimai) {
                                e.next = 10;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 10:
                            if ("shangchao" !== t.key) {
                                e.next = 13;
                                break;
                            }
                            if (!a.shangchao) {
                                e.next = 13;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 13:
                            if ("hotel" !== t.key) {
                                e.next = 16;
                                break;
                            }
                            if (!a.hotel) {
                                e.next = 16;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 16:
                            if ("select" !== t.key) {
                                e.next = 18;
                                break;
                            }
                            return e.abrupt("return", !1);

                          case 18:
                            if (d.a.showLoading({
                                title: "正在加载",
                                mask: !0
                            }), c = n.props.user.currentWeappMp.mtfxApplied, i = {
                                needMini: 1,
                                linkType: 4,
                                type: t.type
                            }, !c || "waimai" !== t.key) {
                                e.next = 27;
                                break;
                            }
                            return e.next = 24, v["U"].getMTLink(i).then(function(e) {
                                return e.data;
                            });

                          case 24:
                            s = e.sent, e.next = 30;
                            break;

                          case 27:
                            return e.next = 29, v["G"].getMTLink2(i).then(function(e) {
                                return e.data;
                            });

                          case 29:
                            s = e.sent;

                          case 30:
                            if (d.a.hideLoading(), !c || "waimai" !== t.key) {
                                e.next = 37;
                                break;
                            }
                            if (0 == s.code) {
                                e.next = 35;
                                break;
                            }
                            return d.a.showToast({
                                title: s.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 35:
                            e.next = 40;
                            break;

                          case 37:
                            if (1 == s.code) {
                                e.next = 40;
                                break;
                            }
                            return d.a.showToast({
                                title: s.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 40:
                            if (r = s.showSwitchButton || !1, n.setState({
                                showSwitchButton: r
                            }), "waimai" !== t.key) {
                                e.next = 46;
                                break;
                            }
                            return a.waimai = s.weappImgUrl, n.setState({
                                weappImgUrl: a
                            }), e.abrupt("return", !1);

                          case 46:
                            if ("shangchao" !== t.key) {
                                e.next = 50;
                                break;
                            }
                            return a.shangchao = s.weappImgUrl, n.setState({
                                weappImgUrl: a
                            }), e.abrupt("return", !1);

                          case 50:
                            if ("hotel" !== t.key) {
                                e.next = 54;
                                break;
                            }
                            return a.hotel = s.weappImgUrl, n.setState({
                                weappImgUrl: a
                            }), e.abrupt("return", !1);

                          case 54:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(p["a"])(Object(m["a"])(n), "showSharePoster", Object(l["a"])(o.a.mark(function e() {
                    var t, a, s, c, i, r, l, h, u, m, j;
                    return o.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            if (n.props.user.loginStatus) {
                                e.next = 3;
                                break;
                            }
                            return n.openLogin(), e.abrupt("return", !1);

                          case 3:
                            if (t = n.getActiveNav(), a = n.state.sharePosterUrl, "waimai" !== t.key) {
                                e.next = 9;
                                break;
                            }
                            if (!a.waimai) {
                                e.next = 9;
                                break;
                            }
                            return n.setState({
                                showShareDialog: !0
                            }), e.abrupt("return", !1);

                          case 9:
                            if ("shangchao" !== t.key) {
                                e.next = 13;
                                break;
                            }
                            if (!a.shangchao) {
                                e.next = 13;
                                break;
                            }
                            return n.setState({
                                showShareDialog: !0
                            }), e.abrupt("return", !1);

                          case 13:
                            if ("hotel" !== t.key) {
                                e.next = 17;
                                break;
                            }
                            if (!a.hotel) {
                                e.next = 17;
                                break;
                            }
                            return n.setState({
                                showShareDialog: !0
                            }), e.abrupt("return", !1);

                          case 17:
                            if (d.a.showLoading({
                                title: "正在加载",
                                mask: !0
                            }), s = n.props.user.agent.agentId, c = void 0 === s ? "" : s, c) {
                                e.next = 33;
                                break;
                            }
                            return e.next = 22, v["G"].getSessionAgentInfo().then(function(e) {
                                return e.data;
                            });

                          case 22:
                            if (i = e.sent, 0 == i.code) {
                                e.next = 27;
                                break;
                            }
                            return r = i.msg || "未获取到代理信息", d.a.showToast({
                                title: r,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 27:
                            if (i.agent) {
                                e.next = 31;
                                break;
                            }
                            return l = i.msg || "未获取到代理信息", d.a.showToast({
                                title: l,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 31:
                            n.props.onUpdateAgent(i.agent), c = i.agent.agentId || "";

                          case 33:
                            return h = {
                                agentId: c,
                                type: t.type
                            }, u = n.props.user.currentWeappMp.mtfxApplied, u && "waimai" === t.key && (h.type = 20), 
                            e.next = 38, v["G"].fetchMTSharePoster(h).then(function(e) {
                                return e.data;
                            });

                          case 38:
                            if (m = e.sent, d.a.hideLoading(), 0 == m.code) {
                                e.next = 43;
                                break;
                            }
                            return d.a.showToast({
                                title: m.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 43:
                            if (n.setState({
                                showShareDialog: !0
                            }), j = Object(L["b"])(), "waimai" !== t.key) {
                                e.next = 50;
                                break;
                            }
                            return a.waimai = "".concat(F["b"].MP, "/MTSharePoster/").concat(c, ".jpg?t=").concat(j), 
                            u && (a.waimai = "".concat(F["b"].MP, "/MTFxSharePoster/").concat(c, ".jpg?t=").concat(j)), 
                            n.setState({
                                sharePosterUrl: a
                            }), e.abrupt("return", !1);

                          case 50:
                            if ("shangchao" !== t.key) {
                                e.next = 54;
                                break;
                            }
                            return a.shangchao = "".concat(F["b"].MP, "/MTScSharePoster/").concat(c, ".jpg?t=").concat(j), 
                            n.setState({
                                sharePosterUrl: a
                            }), e.abrupt("return", !1);

                          case 54:
                            if ("hotel" !== t.key) {
                                e.next = 58;
                                break;
                            }
                            return a.hotel = "".concat(F["b"].MP, "/MTHotelSharePoster/").concat(c, ".jpg?t=").concat(j), 
                            n.setState({
                                sharePosterUrl: a
                            }), e.abrupt("return", !1);

                          case 58:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(p["a"])(Object(m["a"])(n), "closeShareDialog", function() {
                    n.setState({
                        showShareDialog: !1
                    });
                }), Object(p["a"])(Object(m["a"])(n), "copyText", function() {
                    var e = n.getActiveNav();
                    if ("hotel" === e.key) {
                        var t = {
                            data: "美团福利！酒店红包天天领，最高36元！"
                        }, a = function() {};
                        return d.a.setClipboardData(t).then(a).catch(a), !1;
                    }
                    var s = {
                        data: "餐前福利！外卖红包天天领，最高可得66元！"
                    }, c = function() {};
                    d.a.setClipboardData(s).then(c).catch(c);
                }), Object(p["a"])(Object(m["a"])(n), "tapPosterBtn", function(e) {
                    return "close" === e.label ? (n.closeShareDialog(), !1) : "copyLink" === e.label ? (n.copyPromotionUrl(), 
                    !1) : "copyText" === e.label ? (n.copyText(), !1) : void 0;
                }), Object(p["a"])(Object(m["a"])(n), "copyPromotionUrl", Object(l["a"])(o.a.mark(function e() {
                    var t, a, s, c;
                    return o.a.wrap(function(e) {
                        while (1) switch (e.prev = e.next) {
                          case 0:
                            return t = n.getActiveNav(), a = t.type, s = {
                                needMini: 0,
                                type: a,
                                linkType: 3
                            }, d.a.showLoading({
                                title: "正在加载",
                                mask: !0
                            }), e.next = 5, v["G"].getMTLink2(s).then(function(e) {
                                return e.data;
                            });

                          case 5:
                            if (c = e.sent, d.a.hideLoading(), 1 == c.code) {
                                e.next = 10;
                                break;
                            }
                            return d.a.showToast({
                                title: c.msg,
                                icon: "none"
                            }), e.abrupt("return", !1);

                          case 10:
                            d.a.setClipboardData({
                                data: c.url
                            });

                          case 11:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))), Object(p["a"])(Object(m["a"])(n), "navigateToMtMiniProgram", function() {
                    var e = Object(l["a"])(o.a.mark(function e(t, a) {
                        var s;
                        return o.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                return s = {
                                    appId: a || F["e"].MT,
                                    path: t
                                }, e.prev = 1, e.next = 4, d.a.navigateToMiniProgram(s);

                              case 4:
                                e.next = 9;
                                break;

                              case 6:
                                return e.prev = 6, e.t0 = e["catch"](1), e.abrupt("return", !1);

                              case 9:
                                if ("clock" === n.referer) {
                                    e.next = 11;
                                    break;
                                }
                                return e.abrupt("return", !1);

                              case 11:
                                v["H"].clockIn(), n.referer = "";

                              case 13:
                              case "end":
                                return e.stop();
                            }
                        }, e, null, [ [ 1, 6 ] ]);
                    }));
                    return function(t, a) {
                        return e.apply(this, arguments);
                    };
                }()), Object(p["a"])(Object(m["a"])(n), "getFxHongbao", function() {
                    var e = Object(l["a"])(o.a.mark(function e(t) {
                        var a, s;
                        return o.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                if (n.props.user.loginStatus) {
                                    e.next = 3;
                                    break;
                                }
                                return n.openLogin(), e.abrupt("return", !1);

                              case 3:
                                return void 0 === t && (t = n.getActiveNav().type), a = {
                                    needMini: 0,
                                    type: t
                                }, d.a.showLoading({
                                    title: "正在加载",
                                    mask: !0
                                }), e.next = 8, v["U"].getMTLink(a).then(function(e) {
                                    return e.data;
                                });

                              case 8:
                                if (s = e.sent, d.a.hideLoading(), 0 == s.code) {
                                    e.next = 13;
                                    break;
                                }
                                return d.a.showToast({
                                    title: s.msg,
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 13:
                                n.navigateToMtMiniProgram(s.weappUrl);

                              case 14:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }));
                    return function(t) {
                        return e.apply(this, arguments);
                    };
                }()), Object(p["a"])(Object(m["a"])(n), "getHongbao", function() {
                    var e = Object(l["a"])(o.a.mark(function e(t) {
                        var a, s;
                        return o.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                if (n.props.user.loginStatus) {
                                    e.next = 3;
                                    break;
                                }
                                return n.openLogin(), e.abrupt("return", !1);

                              case 3:
                                return void 0 === t && (t = n.getActiveNav().type), a = {
                                    needMini: 0,
                                    type: t,
                                    linkType: 4
                                }, d.a.showLoading({
                                    title: "正在加载",
                                    mask: !0
                                }), e.next = 8, v["G"].getMTLink2(a).then(function(e) {
                                    return e.data;
                                });

                              case 8:
                                if (s = e.sent, d.a.hideLoading(), 1 == s.code) {
                                    e.next = 13;
                                    break;
                                }
                                return d.a.showToast({
                                    title: s.msg,
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 13:
                                if (3 != t && 4 != t && 5 != t) {
                                    e.next = 16;
                                    break;
                                }
                                return n.navigateToMtMiniProgram(s.url, F["e"].MTYX), e.abrupt("return");

                              case 16:
                                n.navigateToMtMiniProgram(s.url);

                              case 17:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }));
                    return function(t) {
                        return e.apply(this, arguments);
                    };
                }()), Object(p["a"])(Object(m["a"])(n), "shareMtyx", function() {
                    var e = Object(l["a"])(o.a.mark(function e(t) {
                        var a, s, c, r, l, h, u;
                        return o.a.wrap(function(e) {
                            while (1) switch (e.prev = e.next) {
                              case 0:
                                return a = t.itemId, s = t.pictUrl, d.a.showLoading({
                                    title: "正在加载",
                                    mask: !0
                                }), e.next = 4, Promise.all([ v["G"].getMTLink2({
                                    type: 3,
                                    needMini: 1
                                }).then(function(e) {
                                    return e.data;
                                }), v["k"].downloadImage({
                                    itemId: a,
                                    imageHref: s
                                }).then(function(e) {
                                    return e.data;
                                }) ]);

                              case 4:
                                if (c = e.sent, r = Object(i["a"])(c, 2), l = r[0], h = r[1], d.a.hideLoading(), 
                                1 == l.code) {
                                    e.next = 12;
                                    break;
                                }
                                return d.a.showToast({
                                    title: l.msg,
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 12:
                                if (l.weappImgUrl) {
                                    e.next = 15;
                                    break;
                                }
                                return d.a.showToast({
                                    title: "未获取到小程序码",
                                    icon: "none"
                                }), e.abrupt("return", !1);

                              case 15:
                                t.pictUrl = h.imageUrl || t.pictUrl, u = C["a"].getMtxyPosterConfig(t, l.weappImgUrl), 
                                n.setState({
                                    drawerConfig: u,
                                    isDrawing: !0,
                                    mtyxPosterUrl: "",
                                    showMtyxPoster: !0
                                });

                              case 18:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }));
                    return function(t) {
                        return e.apply(this, arguments);
                    };
                }()), Object(p["a"])(Object(m["a"])(n), "onCreateSuccess", function(e) {
                    n.setState({
                        isDrawing: !1,
                        mtyxPosterUrl: e.tempFilePath
                    });
                }), Object(p["a"])(Object(m["a"])(n), "onCreateFail", function(e) {
                    console.log(e), n.setState({
                        isDrawing: !1,
                        showMtyxPoster: !1
                    });
                }), Object(p["a"])(Object(m["a"])(n), "getMpShare", function(e) {
                    var t = e && n.state.tabNavs.filter(function(t) {
                        return t.key === e;
                    }), a = t.length && t[0].shareType || n.state.tabNavs[0].shareType;
                    v["P"].fetchByMp({
                        shareType: a
                    }).then(function(e) {
                        return e.data;
                    }).then(function(t) {
                        if (0 != t.code) return !1;
                        n.customShare[e].flag = !0, n.customShare[e].imageHref = t.share && t.share.imageHref || "", 
                        n.customShare[e].shareTitle = t.share && t.share.shareTitle || "";
                    });
                }), n.state = {
                    showLogin: !1,
                    showBind: !1,
                    tabNavs: [ {
                        key: "waimai",
                        title: "外卖",
                        background: "#feac00",
                        type: 0,
                        active: !0,
                        shareType: 2
                    }, {
                        key: "select",
                        title: "优选",
                        background: "#feac00",
                        type: 3,
                        active: !1,
                        shareType: 4
                    }, {
                        key: "shangchao",
                        title: "商超",
                        background: "#5ddd23",
                        type: 1,
                        active: !1,
                        shareType: 3
                    }, {
                        key: "hotel",
                        title: "酒店",
                        background: "#f94601",
                        type: 7,
                        active: !1
                    } ],
                    weappImgUrl: {
                        waimai: "",
                        shangchao: "",
                        hotel: ""
                    },
                    sharePosterUrl: {
                        waimai: "",
                        shangchao: "",
                        hotel: ""
                    },
                    showShareDialog: !1,
                    showSwitchButton: !1,
                    isDrawing: !1,
                    drawerConfig: {},
                    showMtyxPoster: !1,
                    mtyxPosterUrl: ""
                }, n.referer = "", n.pageNum = 1, n.customShare = {
                    waimai: {
                        flag: !1,
                        imageHref: "",
                        shareTitle: ""
                    },
                    select: {
                        flag: !1,
                        imageHref: "",
                        shareTitle: ""
                    },
                    shangchao: {
                        flag: !1,
                        imageHref: "",
                        shareTitle: ""
                    }
                }, n;
            }
            return Object(u["a"])(a, [ {
                key: "componentDidMount",
                value: function() {
                    this.resolveParams();
                }
            }, {
                key: "shouldComponentUpdate",
                value: function(e) {
                    return !this.props.user.loginStatus && e.user.loginStatus && setTimeout(this.getQrCodeUrl, 100), 
                    !0;
                }
            }, {
                key: "componentDidShow",
                value: function() {
                    var e = this.getCustomParams(), t = e.tabKey || "", a = this.state.tabNavs.map(function(e) {
                        return e.key;
                    }), n = a.includes(t);
                    n && this.toggleTabNav(t);
                }
            }, {
                key: "onShareAppMessage",
                value: function() {
                    var e = this.getActiveNav(), t = {
                        tabKey: e.key,
                        agentId: this.props.user.agent.agentId || ""
                    }, a = "pages/main/meituan/index?".concat(x["qs"].stringify(t));
                    if (console.log("path:", a), "waimai" === e.key && this.customShare.waimai.imageHref && this.customShare.waimai.shareTitle) {
                        var n = this.customShare.waimai.shareTitle, s = this.customShare.waimai.imageHref;
                        return {
                            title: n,
                            path: a,
                            imageUrl: s
                        };
                    }
                    if ("select" === e.key && this.customShare.select.imageHref && this.customShare.select.shareTitle) {
                        var c = this.customShare.select.shareTitle, i = this.customShare.select.imageHref;
                        return {
                            title: c,
                            path: a,
                            imageUrl: i
                        };
                    }
                    if ("shangchao" === e.key && this.customShare.shangchao.imageHref && this.customShare.shangchao.shareTitle) {
                        var r = this.customShare.shangchao.shareTitle, o = this.customShare.shangchao.imageHref;
                        return {
                            title: r,
                            path: a,
                            imageUrl: o
                        };
                    }
                    var l = this.props.user.currentWeappMp, h = l.miniServiceType, u = l.nickName;
                    if (1 === h) {
                        var m = "购物先领券，省下一套房！";
                        return {
                            title: m,
                            path: a,
                            imageUrl: ""
                        };
                    }
                    if ([ 4, 5, 6 ].includes(h)) {
                        var j = "", b = "";
                        return "waimai" === e.key && (j = "今日外卖大红包已更新，立即领取↓", b = "http://cdn.meizhuan.cn/pic-go/mt-20211123.jpg"), 
                        "select" === e.key && (j = "今日下单，次日自提", b = "http://cdn.meizhuan.cn/pic-go/share-mtyx-210815.jpg"), 
                        "shangchao" === e.key && (j = "领红包买果蔬，1小时送达", b = "http://cdn.meizhuan.cn/pic-go/share-mtsc-210815.jpg"), 
                        {
                            title: j,
                            path: a,
                            imageUrl: b
                        };
                    }
                    return {
                        title: u,
                        path: a,
                        imageUrl: ""
                    };
                }
            }, {
                key: "render",
                value: function() {
                    var e = this, t = this.state, a = t.tabNavs, n = t.showBind, s = t.isDrawing, c = t.showLogin, i = t.weappImgUrl, r = t.drawerConfig, o = t.mtyxPosterUrl, l = t.showMtyxPoster, h = t.sharePosterUrl, u = t.showShareDialog, m = t.showSwitchButton, j = this.props.user, b = j.isMpUser, p = j.approved, g = this.props.user.agent.selfOrderConfirmNum, d = this.props.user.currentWeappMp, x = d.showMtHotel, w = d.showMtYx, f = this.getActiveNav();
                    return Object(q["jsxs"])(k["View"], {
                        className: "meituan",
                        children: [ Object(q["jsx"])(T["a"], {
                            home: !0,
                            color: "#ffffff",
                            iconTheme: "white",
                            onHome: y["a"].openHome,
                            background: f.background,
                            renderCenter: Object(q["jsx"])(k["View"], {
                                className: "nav-bar-tabs",
                                children: a.filter(function(e) {
                                    return "hotel" === e.key ? x : "select" !== e.key || w && (b || g || p);
                                }).map(function(t) {
                                    return Object(q["jsx"])(k["View"], {
                                        onClick: function() {
                                            return e.toggleTabNav(t.key);
                                        },
                                        className: O()("item", {
                                            active: t.active
                                        }),
                                        children: Object(q["jsx"])(k["Text"], {
                                            className: "title",
                                            children: t.title
                                        })
                                    }, t.key);
                                })
                            })
                        }), Object(q["jsx"])(Oe, {
                            show: "waimai" === f.key,
                            weappImgUrl: i.waimai,
                            onShare: this.showSharePoster,
                            onHongbao: this.getHongbao,
                            onChangeNav: this.toggleTabNav,
                            onFxHongbao: this.getFxHongbao
                        }), "waimai" === f.key && Object(q["jsx"])(I["a"], {
                            show: u,
                            src: h.waimai,
                            buttons: [ {
                                label: "copyLink",
                                text: "复制链接"
                            }, {
                                label: "copyText",
                                text: "复制文案"
                            }, {
                                label: "close",
                                text: "关闭"
                            } ],
                            onTapButton: function(t) {
                                return e.tapPosterBtn(t);
                            }
                        }), Object(q["jsx"])(ee, {
                            onShare: this.shareMtyx,
                            onHongbao: this.getHongbao,
                            show: "select" === f.key
                        }), "shangchao" === f.key && Object(q["jsx"])(Te, {
                            onCopy: this.copyText,
                            onHongbao: this.getHongbao,
                            onShare: this.showSharePoster,
                            weappImgUrl: i.shangchao,
                            showSwitchButton: m
                        }), "shangchao" === f.key && Object(q["jsx"])(I["a"], {
                            show: u,
                            src: h.shangchao,
                            buttons: [ {
                                label: "copyLink",
                                text: "复制链接"
                            }, {
                                label: "close",
                                text: "关闭"
                            } ],
                            onTapButton: function(t) {
                                return e.tapPosterBtn(t);
                            }
                        }), x && "hotel" === f.key ? Object(q["jsx"])(K, {
                            onCopy: this.copyText,
                            onShare: this.showSharePoster,
                            onHongbao: this.getHongbao,
                            weappImgUrl: i.hotel,
                            showSwitchButton: m
                        }) : null, x && "hotel" === f.key ? Object(q["jsx"])(I["a"], {
                            show: u,
                            src: h.hotel,
                            buttons: [ {
                                label: "close",
                                text: "关闭"
                            } ],
                            onTapButton: function(t) {
                                return e.tapPosterBtn(t);
                            }
                        }) : null, s && Object(q["jsx"])(M["a"], {
                            config: r,
                            onCreateSuccess: this.onCreateSuccess,
                            onCreateFail: this.onCreateFail
                        }), Object(q["jsx"])(I["a"], {
                            src: o,
                            show: l,
                            buttons: [ {
                                label: "close",
                                text: "关闭"
                            } ],
                            onTapButton: function() {
                                return e.setState({
                                    showMtyxPoster: !1
                                });
                            }
                        }), Object(q["jsx"])(V["a"], {
                            enableClose: !0,
                            bind: n,
                            show: c,
                            onSuccess: this.getQrCodeUrl,
                            onCloseLogin: this.closeLogin
                        }), Object(q["jsx"])(S["a"], {}), Object(q["jsx"])(H["a"], {
                            activeKey: "meituan"
                        }) ]
                    });
                }
            } ]), a;
        }(N["Component"])) || ye), Me = Ie, Ce = {
            navigationStyle: "custom",
            navigationBarTitleText: "",
            enablePullDownRefresh: !1
        };
        Me.enableShareAppMessage = !0;
        Page(Object(c["createPageConfig"])(Me, "pages/main/meituan/index", {
            root: {
                cn: []
            }
        }, Ce || {}));
    }
}, [ [ 688, 0, 1, 2, 3 ] ] ]);